package com.example.Words.room.presenter;

import androidx.lifecycle.LiveData;

import com.example.Words.room.model.entity.Word;

import java.util.List;

/**
 * <pre>
 *  author:huletian
 *  time    :2020/2/22
 *  desc    :对模型层操作的接口类
 *  version:1.0
 * </pre>
 */
public interface RoomPresenterIntf {
    void insertDate(Word... words);
    void clearDate();
    void update(Word... words);
    LiveData<List<Word>> getAllWordsLive();
    LiveData<List<Word>> findWordsWithPatten(String patten);
    void deleteWords(Word... words);
}
